Handled Surface API review comments #6224
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Handled Surface API review comments
Motivation and Context
This change adds support for configuring a local address in the Apache5 HTTP client, bringing it to feature parity with the Apache HTTP client.
Modifications
Added local address configuration to Apache5HttpClient:
localAddress
field to theDefaultBuilder
classlocalAddress(InetAddress)
method to theBuilder
interfacesetLocalAddress(InetAddress)
for bean-style configurationaddProxyConfig()
to handle local address configuration when no custom route planner is providedUpdated client name:
CLIENT_NAME
from "Apache5" to "Apache5Preview" to identify Preview in user agentsAdded test coverage:
Apache5HttpClientLocalAddressOnBuilderFunctionalTest
to test local address configuration via builderApache5HttpClientLocalAddressRoutePlannerFunctionalTest
for clarityMetricReportingTest
to expect the new client namePackage name consistency:
.brazil.json
to use consistent casing:AwsJavaSdk-HttpClient-Apache5Client-Preview
Testing
License